import request from "@/utils/request";

export function goodsList(queryParams) {
  return request({
    url: '/shop/goods/list',
    method: 'post',
    data: queryParams
  })
}
export function deleteObj(id)
{
  return request({
    url: '/shop/goods/'+id,
    method: 'delete'
  })
}


export function updateOrSave(data) {
  return request({
    url: '/shop/goods',
    method: 'put',
    data:data
  })
}
